Search
Brush Constructor (Color | string)
See Also
 






Initializes a new instance of the Brush class.

Namespace: MindFusion.Drawing
File: Brush.js

 Syntax

JavaScript  Copy Code

function Brush (color)

 Parameters

color

The color of this brush.

 Example

The following code creates a new Brush and assigns it as a background of a ToolTip:

JavaScript  Copy Code
ToolTip.brush = new Drawing.Brush("#fafafa");

 See Also